package pojo;

import java.io.Serializable;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;

public class Person implements Serializable {
    private static final long serialVersionUID = -5853902011505335004L;
    private int id;
    private String name;
    private int money = 1000;
    private List<PokeEnum> pokeList = new ArrayList<>();
    private boolean ready = false;
    private boolean receivedReadyMessage = false;
    private boolean abandon = false;
    private boolean suoha;
    private int cost = 0;

    public void addMoney(int money){
        this.money += money;
    }

    public void addCost(int cost){
        this.cost += cost;
    }

    public void subCost(int cost){
        this.cost -= cost;
    }

    public int subMoney(int money){
        this.money -= money;
        return money;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<PokeEnum> getPokeList() {
        return pokeList;
    }

    public void setPokeList(List<PokeEnum> pokeList) {
        this.pokeList = pokeList;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public boolean isReady() {
        return ready;
    }

    public void setReady(boolean ready) {
        this.ready = ready;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public boolean isAbandon() {
        return abandon;
    }

    public void setAbandon(boolean abandon) {
        this.abandon = abandon;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public boolean isReceivedReadyMessage() {
        return receivedReadyMessage;
    }

    public void setReceivedReadyMessage(boolean receivedReadyMessage) {
        this.receivedReadyMessage = receivedReadyMessage;
    }

    public boolean isSuoha() {
        return suoha;
    }

    public void setSuoha(boolean suoha) {
        this.suoha = suoha;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
